home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / util / gnu / cvs-1.11.1p1.lha / source / diff / smakefile
Encoding:
Makefile  |  2001-07-22  |  2.5 KB  |  88 lines

  1. #
  2. # $Id$
  3. #
  4. # :ts=4
  5. #
  6. # AmigaOS wrapper routines for GNU CVS, using the AmiTCP V3 API
  7. # and the SAS/C V6.58 compiler.
  8. #
  9. # Written and adapted by Olaf `Olsen' Barthel <olsen@sourcery.han.de>
  10. #                        Jens Langner <Jens.Langner@htw-dresden.de>
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; either version 2 of the License, or
  15. # (at your option) any later version.
  16. #
  17. # This program is distributed in the hope that it will be useful,
  18. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. # GNU General Public License for more details.
  21. #
  22. # You should have received a copy of the GNU General Public License
  23. # along with this program; if not, write to the Free Software
  24. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  25. #
  26.  
  27. TARGET = diff.lib
  28.  
  29. # Programs
  30.  
  31. CC  = sc
  32. OML = oml
  33. CP  = copy
  34. RM  = delete quiet
  35.  
  36. # ignored warnings are:
  37. #  51 C++ comment detected                                 -- we agreed to use them
  38. #  61 undefined struct/union tag "tag-name"                -- in include files
  39. # 120 Integral type mismatch: possible portability problem -- should be used somewhen
  40. # 148 use of incomplete struct/union/enum tag "name"       -- in include files
  41. # 165 use of narrow type in prototype                      -- very unlikely portability problem
  42. # 178 indirect call without indirection operator           -- only old-style support
  43. # 212 item "name" already declared                         -- in include files
  44. # 306 .. function inlined                                  -- disturbs
  45.  
  46. # Compiler/Linker flags
  47.  
  48. CPU      =  68020
  49. DEFS     =  DEFINE=HAVE_CONFIG_H
  50. WARN     =  WARN=ALL IGNORE=51,61,120,148,165,178,212,306
  51. INCDIRS  =  IDIR="/amiga/include" IDIR="/amiga" IDIR="/amiga/netinclude" IDIR="" \
  52.             IDIR="/" IDIR="/lib"
  53. CFLAGS   =  OPT OPTTIME OPTSCHEDULE CPU=$(CPU) UTILLIB COMMENTNEST STRUCTUREEQUIVALENCE \
  54.             STRINGMERGE NOSTACKCHECK $(WARN) $(DEFS) $(INCDIRS) DEBUG=LINE
  55.  
  56. OBJS     =  diff.o diff3.o analyze.o cmpbuf.o dir.o io.o util.o \
  57.             context.o ed.o ifdef.o normal.o side.o version.o
  58.  
  59. #
  60.  
  61. default: $(TARGET)
  62.  
  63. # Default rule
  64.  
  65. .c.o:
  66.   @echo "*e[32mCompiling $*.c*e[0m"
  67.   @$(CC) $(CFLAGS) $<
  68.  
  69. #
  70.  
  71. $(TARGET): $(OBJS)
  72.   @echo "*e[32mLinking $*.lib*e[0m"
  73.   @$(OML) $@ r $(OBJS)
  74.  
  75. #
  76.  
  77. $(OBJS): diff.h diffrun.h system.h
  78. analyze.o cmpbuf.o: cmpbuf.h
  79.  
  80. # leaves TARGET
  81. clean:
  82.   -$(RM) $(OBJS)
  83.  
  84. #
  85. cleanall: clean
  86.   -$(RM) $(TARGET)
  87.  
  88.